package ModelLayer;

public class BrakeDisc extends Product 
{
	private String discType;
	
		//Constructor which catches the superclass
		public BrakeDisc()
		{
			super(0, 0, "", 0, 0, 0, "", "", "", "", 0, 0, 0);
		}
		
		//Constructor which builds the onbject
		public BrakeDisc(int productNumber, int serialNumber, String productName, double purchasePrice,	double salesPrice, double rentPrice, String countryOfOrigin, String fabricant, String description, String carModel, int modelYear, int minStock, int maxStock, String discType)
		{
			super(productNumber, serialNumber, productName, purchasePrice, salesPrice, rentPrice, countryOfOrigin, fabricant, description, carModel, modelYear, minStock, maxStock);
		
			this.discType = discType;
		}

		//Returns the disctype
		public String getDiscType() 
		{
			return discType;
		}

		//Sets the disctype
		public void setDiscType(String discType) 
		{
			this.discType = discType;
		}
		
		//Returns the producttype
		public String getProductType()
		{
			return "Brakedisc";
		}
	
		
}
